package io.zhijian.app.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Controller
@RequestMapping(value = "/api/public")
@Api(value="公共接口",tags="公共接口")
public class PublicController {
	@RequestMapping(value = "/index", method = RequestMethod.GET)
	@ApiOperation(value = "index", notes = "测试", httpMethod = "GET")
	@ResponseBody
	public String aaa(@ApiParam(name="username",value="用户id",required=true) @RequestParam(value = "username") String username){
		return username;
	}
}
